<div class="main">
    <img src="assets/images/logo.jpg" alt="logo" id="logo">
    <form action="#" method="post">
        <input name="telephone" class="edit" type="text" placeholder="手机号" required oninput = "value=value.replace(/[^\d]/g,'')" [(ngModel)]="telephone">
        
        <input name="password" class="edit" type="password" placeholder="密码" required [(ngModel)]="password">
        <input type="image" src="assets/images/load.jpg" class="submit" (click)="onLogin()">
    </form>
    <div style="display: flex">
        <a [routerLink]="[ '/zhuce' ]" class="zhuce">注册</a>
    <a [routerLink]="[ '/wangmi' ]" class="forget">忘记密码</a>
    </div>
</div>
